/**
 * Copyright (C) 2025 pony working team
 * SPDX-License-Identifier: MulanPSL-2.0
 */

#include <stdio.h>

#include <nrf_gpio.h>

#include <k_task.h>

#define LED_RED NRF_GPIO_PIN_MAP(0, 15)

int main(void)
{
    /*
     * main task created for you, please add your code here
     *
     * NOTE: the arguments used to create this task
     *
     *  +------------+----------------------+---------+
     *  | attribute  | kconfig entry name   | default |
     *  +------------+----------------------+---------+
     *  | priority   | MAIN_TASK_PRIO       | 20      |
     *  | stack size | MAIN_TASK_STACK_SIZE | 0x800   |
     *  | options    | MAIN_TASK_OPTIONS    | 0       |
     *  +------------+----------------------+---------+
     *
     * you can change them by using the project tool (`prj -s` or `prj -m`)
     *
     * of cause, you can do your initialization here and just let this task
     * return, and this task will be terminated
     */

    printf("hello pony :-)\n");

    nrf_gpio_cfg_output(LED_RED);

    while (1) {
        nrf_gpio_pin_toggle(LED_RED);
        task_msleep(1000);
    }

    return 0;
}
